@extends('master.index')
@section('content')
    <div class="layui-fluid">
        <div class="layui-row">
            <form method="post" action="{{url('/addProduct')}}" enctype="multipart/form-data">
                {{csrf_field()}}
                <div class="layui-form-item">
                    <label for="title" class="layui-form-label">
                        <span class="x-red">*</span>商品名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="username" name="title" required="" lay-verify="required"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="phone" class="layui-form-label">
                        <span class="x-red">*</span>商品分类ID
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="phone" name="catagory_id" required="" lay-verify="phone"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_email" class="layui-form-label">
                        <span class="x-red">*</span>价格
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_email" name="price" required="" lay-verify="email"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_pass" class="layui-form-label">
                        <span class="x-red">*</span>库存
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_pass" name="inventory" required="" lay-verify="pass"
                               autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>封面图片
                    </label>
                    <div class="layui-input-inline">
                        <input type="file" name="img"/>
                        <!--
                        <input type="text" id="L_repass" name="img" required="" lay-verify="repass"
                               autocomplete="off" class="layui-input">
                        -->
                    </div>
                </div>



                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>详图1
                    </label>
                    <div class="layui-input-inline">
                        <input type="file" name="detailImg[]"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>详图2
                    </label>
                    <div class="layui-input-inline">
                        <input type="file" name="detailImg[]"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>详图3
                    </label>
                    <div class="layui-input-inline">
                        <input type="file" name="detailImg[]"/>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <input type="submit" class="layui-btn" lay-filter="add" lay-submit="" value="添加">
                </div>
            </form>
        </div>
    </div>
@endsection
